package org.eddycar.jproyeddycar.contrato.vistas;

import java.util.Date;
import javax.swing.JOptionPane;
import org.eddycar.jproyeddycar.comun.dao.DaoCliente;
import org.eddycar.jproyeddycar.comun.modelo.Cliente;
import org.eddycar.jproyeddycar.negocio.CargarReportes;
import org.eddycar.jproyeddycar.negocio.Control;
import org.eddycar.jproyeddycar.contrato.dao.DaoAdministracionFinanciamiento;
import org.eddycar.jproyeddycar.contrato.dao.DaoSolicitudFinanciamiento;
import org.eddycar.jproyeddycar.contrato.dao.DaoVehiculo;
import org.eddycar.jproyeddycar.contrato.modelo.Financiamiento;
import org.eddycar.jproyeddycar.contrato.modelo.SolicitudFinanciamiento;
import org.eddycar.jproyeddycar.contrato.modelo.Vehiculo;

public class VistaSolicitudFinanciamiento extends javax.swing.JDialog {

    SolicitudFinanciamiento sol = new SolicitudFinanciamiento();
    DaoVehiculo dv;
    Vehiculo v1;
    DaoCliente dc;
    Cliente cliente;
    String cedula = "";
    Control control = new Control();
    DaoAdministracionFinanciamiento daoAdministracion;
    Financiamiento admin;
    DaoSolicitudFinanciamiento ds = new DaoSolicitudFinanciamiento();
    SolicitudFinanciamiento solicitudEncontrada = new SolicitudFinanciamiento();

    public VistaSolicitudFinanciamiento() {
        initComponents();
        setLocationRelativeTo(this);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        txtNombreApellidoCliente = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        txtCedula = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        txtEdad = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        txtEstado = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        txtTelefono = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        txtNombreApellidoConyuge = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        txtCedulaC = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        txtTelefonoC = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        txtDirec = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        txtDirecTrab = new javax.swing.JTextField();
        txtDirecG = new javax.swing.JTextField();
        txtTelefonoG = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        txtEdadG = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        txtEstadoG = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        txtNombresApellidosG = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        txtCedulaG = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        txtMotor = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        txtColor = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        txtTipo = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        txtMarca = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        txtMatricula = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        txtPlaca = new javax.swing.JTextField();
        jLabel26 = new javax.swing.JLabel();
        txtChasis = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        txtModelo = new javax.swing.JTextField();
        jLabel28 = new javax.swing.JLabel();
        txtCedulaNuevo = new javax.swing.JTextField();
        btnBuscarCliente = new javax.swing.JButton();
        txtPlacaNuevo = new javax.swing.JTextField();
        btnBuscarVehiculo = new javax.swing.JButton();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        txtValorFinal = new javax.swing.JTextField();
        jLabel32 = new javax.swing.JLabel();
        txtValorEntrada = new javax.swing.JTextField();
        jLabel33 = new javax.swing.JLabel();
        txtSaldoAdeudado = new javax.swing.JTextField();
        jLabel34 = new javax.swing.JLabel();
        txtPlazo = new javax.swing.JTextField();
        jLabel35 = new javax.swing.JLabel();
        txtValorCuotas = new javax.swing.JTextField();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        btnFinalizarFinanciamiento = new javax.swing.JButton();
        btnGuardarEntrada = new javax.swing.JButton();
        btnGuardarPlazo = new javax.swing.JButton();
        jLabel38 = new javax.swing.JLabel();
        txtIdSolicitud = new javax.swing.JTextField();
        btnNuevaSolicitud = new javax.swing.JButton();
        txtImprimir = new javax.swing.JButton();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        jLabel52 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance().getContext().getResourceMap(VistaSolicitudFinanciamiento.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N
        setResizable(false);

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jPanel1.setBackground(resourceMap.getColor("jPanel1.background")); // NOI18N
        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 120, -1, -1));

        jLabel2.setBackground(resourceMap.getColor("jLabel2.background")); // NOI18N
        jLabel2.setFont(resourceMap.getFont("jLabel2.font")); // NOI18N
        jLabel2.setForeground(resourceMap.getColor("jLabel2.foreground")); // NOI18N
        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N
        jLabel2.setOpaque(true);
        jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 100, 340, -1));

        jLabel3.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N
        jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 204, 130, -1));

        txtNombreApellidoCliente.setEditable(false);
        txtNombreApellidoCliente.setText(resourceMap.getString("txtNombreApellidoCliente.text")); // NOI18N
        txtNombreApellidoCliente.setName("txtNombreApellidoCliente"); // NOI18N
        jPanel1.add(txtNombreApellidoCliente, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 202, 628, -1));

        jLabel4.setFont(resourceMap.getFont("jLabel4.font")); // NOI18N
        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N
        jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 229, 130, -1));

        txtCedula.setEditable(false);
        txtCedula.setName("txtCedula"); // NOI18N
        jPanel1.add(txtCedula, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 228, 301, -1));

        jLabel5.setFont(resourceMap.getFont("jLabel5.font")); // NOI18N
        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N
        jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(466, 229, 42, -1));

        txtEdad.setEditable(false);
        txtEdad.setName("txtEdad"); // NOI18N
        jPanel1.add(txtEdad, new org.netbeans.lib.awtextra.AbsoluteConstraints(533, 228, 256, -1));

        jLabel6.setFont(resourceMap.getFont("jLabel6.font")); // NOI18N
        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N
        jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 255, 75, -1));

        txtEstado.setEditable(false);
        txtEstado.setName("txtEstado"); // NOI18N
        jPanel1.add(txtEstado, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 254, 301, -1));

        jLabel7.setFont(resourceMap.getFont("jLabel7.font")); // NOI18N
        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N
        jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(466, 255, 63, -1));

        txtTelefono.setEditable(false);
        txtTelefono.setName("txtTelefono"); // NOI18N
        jPanel1.add(txtTelefono, new org.netbeans.lib.awtextra.AbsoluteConstraints(533, 254, 256, -1));

        jLabel8.setFont(resourceMap.getFont("jLabel8.font")); // NOI18N
        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N
        jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 281, -1, -1));

        txtNombreApellidoConyuge.setEditable(false);
        txtNombreApellidoConyuge.setName("txtNombreApellidoConyuge"); // NOI18N
        jPanel1.add(txtNombreApellidoConyuge, new org.netbeans.lib.awtextra.AbsoluteConstraints(163, 280, 626, -1));

        jLabel9.setFont(resourceMap.getFont("jLabel9.font")); // NOI18N
        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N
        jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 307, 130, -1));

        txtCedulaC.setEditable(false);
        txtCedulaC.setName("txtCedulaC"); // NOI18N
        jPanel1.add(txtCedulaC, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 306, 270, -1));

        jLabel10.setFont(resourceMap.getFont("jLabel10.font")); // NOI18N
        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N
        jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(434, 307, -1, -1));

        txtTelefonoC.setEditable(false);
        txtTelefonoC.setName("txtTelefonoC"); // NOI18N
        jPanel1.add(txtTelefonoC, new org.netbeans.lib.awtextra.AbsoluteConstraints(545, 306, 244, -1));

        jLabel11.setFont(resourceMap.getFont("jLabel11.font")); // NOI18N
        jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
        jLabel11.setName("jLabel11"); // NOI18N
        jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 333, 130, -1));

        txtDirec.setEditable(false);
        txtDirec.setName("txtDirec"); // NOI18N
        jPanel1.add(txtDirec, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 332, 628, -1));

        jLabel12.setFont(resourceMap.getFont("jLabel12.font")); // NOI18N
        jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
        jLabel12.setName("jLabel12"); // NOI18N
        jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 359, 115, -1));

        txtDirecTrab.setEditable(false);
        txtDirecTrab.setName("txtDirecTrab"); // NOI18N
        jPanel1.add(txtDirecTrab, new org.netbeans.lib.awtextra.AbsoluteConstraints(161, 358, 628, -1));

        txtDirecG.setEditable(false);
        txtDirecG.setName("txtDirecG"); // NOI18N
        jPanel1.add(txtDirecG, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 530, 632, -1));

        txtTelefonoG.setEditable(false);
        txtTelefonoG.setName("txtTelefonoG"); // NOI18N
        jPanel1.add(txtTelefonoG, new org.netbeans.lib.awtextra.AbsoluteConstraints(533, 504, 256, -1));

        jLabel13.setFont(resourceMap.getFont("jLabel13.font")); // NOI18N
        jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
        jLabel13.setName("jLabel13"); // NOI18N
        jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 531, -1, -1));

        jLabel14.setFont(resourceMap.getFont("jLabel14.font")); // NOI18N
        jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
        jLabel14.setName("jLabel14"); // NOI18N
        jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(466, 505, 63, -1));

        txtEdadG.setEditable(false);
        txtEdadG.setName("txtEdadG"); // NOI18N
        jPanel1.add(txtEdadG, new org.netbeans.lib.awtextra.AbsoluteConstraints(533, 478, 256, -1));

        jLabel15.setFont(resourceMap.getFont("jLabel15.font")); // NOI18N
        jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
        jLabel15.setName("jLabel15"); // NOI18N
        jPanel1.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(466, 479, 42, -1));

        txtEstadoG.setEditable(false);
        txtEstadoG.setName("txtEstadoG"); // NOI18N
        jPanel1.add(txtEstadoG, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 504, 305, -1));

        jLabel16.setFont(resourceMap.getFont("jLabel16.font")); // NOI18N
        jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
        jLabel16.setName("jLabel16"); // NOI18N
        jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 505, 75, -1));

        jLabel17.setBackground(resourceMap.getColor("jLabel17.background")); // NOI18N
        jLabel17.setFont(resourceMap.getFont("jLabel17.font")); // NOI18N
        jLabel17.setForeground(resourceMap.getColor("jLabel17.foreground")); // NOI18N
        jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N
        jLabel17.setName("jLabel17"); // NOI18N
        jLabel17.setOpaque(true);
        jPanel1.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 408, 761, 26));

        txtNombresApellidosG.setEditable(false);
        txtNombresApellidosG.setName("txtNombresApellidosG"); // NOI18N
        jPanel1.add(txtNombresApellidosG, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 452, 632, -1));

        jLabel18.setFont(resourceMap.getFont("jLabel18.font")); // NOI18N
        jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N
        jLabel18.setName("jLabel18"); // NOI18N
        jPanel1.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 453, -1, -1));

        txtCedulaG.setEditable(false);
        txtCedulaG.setName("txtCedulaG"); // NOI18N
        jPanel1.add(txtCedulaG, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 478, 305, -1));

        jLabel19.setFont(resourceMap.getFont("jLabel19.font")); // NOI18N
        jLabel19.setText(resourceMap.getString("jLabel19.text")); // NOI18N
        jLabel19.setName("jLabel19"); // NOI18N
        jPanel1.add(jLabel19, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 479, 115, -1));

        jLabel20.setBackground(resourceMap.getColor("jLabel20.background")); // NOI18N
        jLabel20.setFont(resourceMap.getFont("jLabel20.font")); // NOI18N
        jLabel20.setForeground(resourceMap.getColor("jLabel20.foreground")); // NOI18N
        jLabel20.setText(resourceMap.getString("jLabel20.text")); // NOI18N
        jLabel20.setName("jLabel20"); // NOI18N
        jLabel20.setOpaque(true);
        jPanel1.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 576, 761, 26));

        txtMotor.setEditable(false);
        txtMotor.setName("txtMotor"); // NOI18N
        jPanel1.add(txtMotor, new org.netbeans.lib.awtextra.AbsoluteConstraints(533, 646, 256, -1));

        jLabel21.setFont(resourceMap.getFont("jLabel21.font")); // NOI18N
        jLabel21.setText(resourceMap.getString("jLabel21.text")); // NOI18N
        jLabel21.setName("jLabel21"); // NOI18N
        jPanel1.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(466, 647, 63, -1));

        txtColor.setEditable(false);
        txtColor.setName("txtColor"); // NOI18N
        jPanel1.add(txtColor, new org.netbeans.lib.awtextra.AbsoluteConstraints(533, 620, 256, -1));

        jLabel22.setFont(resourceMap.getFont("jLabel22.font")); // NOI18N
        jLabel22.setText(resourceMap.getString("jLabel22.text")); // NOI18N
        jLabel22.setName("jLabel22"); // NOI18N
        jPanel1.add(jLabel22, new org.netbeans.lib.awtextra.AbsoluteConstraints(466, 621, 42, -1));

        txtTipo.setEditable(false);
        txtTipo.setName("txtTipo"); // NOI18N
        jPanel1.add(txtTipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 646, 305, -1));

        jLabel23.setFont(resourceMap.getFont("jLabel23.font")); // NOI18N
        jLabel23.setText(resourceMap.getString("jLabel23.text")); // NOI18N
        jLabel23.setName("jLabel23"); // NOI18N
        jPanel1.add(jLabel23, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 647, 75, -1));

        txtMarca.setEditable(false);
        txtMarca.setName("txtMarca"); // NOI18N
        jPanel1.add(txtMarca, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 620, 305, -1));

        jLabel24.setFont(resourceMap.getFont("jLabel24.font")); // NOI18N
        jLabel24.setText(resourceMap.getString("jLabel24.text")); // NOI18N
        jLabel24.setName("jLabel24"); // NOI18N
        jPanel1.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 621, 115, -1));

        txtMatricula.setEditable(false);
        txtMatricula.setName("txtMatricula"); // NOI18N
        jPanel1.add(txtMatricula, new org.netbeans.lib.awtextra.AbsoluteConstraints(533, 698, 256, -1));

        jLabel25.setFont(resourceMap.getFont("jLabel25.font")); // NOI18N
        jLabel25.setText(resourceMap.getString("jLabel25.text")); // NOI18N
        jLabel25.setName("jLabel25"); // NOI18N
        jPanel1.add(jLabel25, new org.netbeans.lib.awtextra.AbsoluteConstraints(466, 699, 63, -1));

        txtPlaca.setEditable(false);
        txtPlaca.setName("txtPlaca"); // NOI18N
        jPanel1.add(txtPlaca, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 698, 305, -1));

        jLabel26.setFont(resourceMap.getFont("jLabel26.font")); // NOI18N
        jLabel26.setText(resourceMap.getString("jLabel26.text")); // NOI18N
        jLabel26.setName("jLabel26"); // NOI18N
        jPanel1.add(jLabel26, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 699, 75, -1));

        txtChasis.setEditable(false);
        txtChasis.setName("txtChasis"); // NOI18N
        jPanel1.add(txtChasis, new org.netbeans.lib.awtextra.AbsoluteConstraints(533, 672, 256, -1));

        jLabel27.setFont(resourceMap.getFont("jLabel27.font")); // NOI18N
        jLabel27.setText(resourceMap.getString("jLabel27.text")); // NOI18N
        jLabel27.setName("jLabel27"); // NOI18N
        jPanel1.add(jLabel27, new org.netbeans.lib.awtextra.AbsoluteConstraints(466, 673, 80, -1));

        txtModelo.setEditable(false);
        txtModelo.setName("txtModelo"); // NOI18N
        jPanel1.add(txtModelo, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 672, 305, -1));

        jLabel28.setFont(resourceMap.getFont("jLabel28.font")); // NOI18N
        jLabel28.setText(resourceMap.getString("jLabel28.text")); // NOI18N
        jLabel28.setName("jLabel28"); // NOI18N
        jPanel1.add(jLabel28, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 673, 115, -1));

        txtCedulaNuevo.setName("txtCedulaNuevo"); // NOI18N
        jPanel1.add(txtCedulaNuevo, new org.netbeans.lib.awtextra.AbsoluteConstraints(807, 158, 136, -1));

        btnBuscarCliente.setText(resourceMap.getString("btnBuscarCliente.text")); // NOI18N
        btnBuscarCliente.setName("btnBuscarCliente"); // NOI18N
        btnBuscarCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarClienteActionPerformed(evt);
            }
        });
        jPanel1.add(btnBuscarCliente, new org.netbeans.lib.awtextra.AbsoluteConstraints(807, 184, 136, 25));

        txtPlacaNuevo.setName("txtPlacaNuevo"); // NOI18N
        jPanel1.add(txtPlacaNuevo, new org.netbeans.lib.awtextra.AbsoluteConstraints(807, 576, 136, -1));

        btnBuscarVehiculo.setText(resourceMap.getString("btnBuscarVehiculo.text")); // NOI18N
        btnBuscarVehiculo.setName("btnBuscarVehiculo"); // NOI18N
        btnBuscarVehiculo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarVehiculoActionPerformed(evt);
            }
        });
        jPanel1.add(btnBuscarVehiculo, new org.netbeans.lib.awtextra.AbsoluteConstraints(807, 602, 136, 25));

        jLabel29.setBackground(resourceMap.getColor("jLabel29.background")); // NOI18N
        jLabel29.setFont(resourceMap.getFont("jLabel29.font")); // NOI18N
        jLabel29.setForeground(resourceMap.getColor("jLabel29.foreground")); // NOI18N
        jLabel29.setText(resourceMap.getString("jLabel29.text")); // NOI18N
        jLabel29.setName("jLabel29"); // NOI18N
        jLabel29.setOpaque(true);
        jPanel1.add(jLabel29, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 736, 761, 26));

        jLabel30.setFont(resourceMap.getFont("jLabel30.font")); // NOI18N
        jLabel30.setText(resourceMap.getString("jLabel30.text")); // NOI18N
        jLabel30.setName("jLabel30"); // NOI18N
        jPanel1.add(jLabel30, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 810, 157, -1));

        txtValorFinal.setEditable(false);
        txtValorFinal.setName("txtValorFinal"); // NOI18N
        jPanel1.add(txtValorFinal, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 802, 188, -1));

        jLabel32.setFont(resourceMap.getFont("jLabel32.font")); // NOI18N
        jLabel32.setText(resourceMap.getString("jLabel32.text")); // NOI18N
        jLabel32.setName("jLabel32"); // NOI18N
        jPanel1.add(jLabel32, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 835, 157, -1));

        txtValorEntrada.setText(resourceMap.getString("txtValorEntrada.text")); // NOI18N
        txtValorEntrada.setName("txtValorEntrada"); // NOI18N
        jPanel1.add(txtValorEntrada, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 829, 188, -1));

        jLabel33.setFont(resourceMap.getFont("jLabel33.font")); // NOI18N
        jLabel33.setText(resourceMap.getString("jLabel33.text")); // NOI18N
        jLabel33.setName("jLabel33"); // NOI18N
        jPanel1.add(jLabel33, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 861, 157, -1));

        txtSaldoAdeudado.setEditable(false);
        txtSaldoAdeudado.setName("txtSaldoAdeudado"); // NOI18N
        jPanel1.add(txtSaldoAdeudado, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 857, 188, -1));

        jLabel34.setFont(resourceMap.getFont("jLabel34.font")); // NOI18N
        jLabel34.setText(resourceMap.getString("jLabel34.text")); // NOI18N
        jLabel34.setName("jLabel34"); // NOI18N
        jPanel1.add(jLabel34, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 890, 157, -1));

        txtPlazo.setText(resourceMap.getString("txtPlazo.text")); // NOI18N
        txtPlazo.setName("txtPlazo"); // NOI18N
        jPanel1.add(txtPlazo, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 884, 188, -1));

        jLabel35.setFont(resourceMap.getFont("jLabel35.font")); // NOI18N
        jLabel35.setText(resourceMap.getString("jLabel35.text")); // NOI18N
        jLabel35.setName("jLabel35"); // NOI18N
        jPanel1.add(jLabel35, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 916, 157, -1));

        txtValorCuotas.setEditable(false);
        txtValorCuotas.setName("txtValorCuotas"); // NOI18N
        jPanel1.add(txtValorCuotas, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 912, 188, -1));

        jLabel36.setFont(resourceMap.getFont("jLabel36.font")); // NOI18N
        jLabel36.setText(resourceMap.getString("jLabel36.text")); // NOI18N
        jLabel36.setName("jLabel36"); // NOI18N
        jPanel1.add(jLabel36, new org.netbeans.lib.awtextra.AbsoluteConstraints(589, 857, -1, -1));

        jLabel37.setFont(resourceMap.getFont("jLabel37.font")); // NOI18N
        jLabel37.setText(resourceMap.getString("jLabel37.text")); // NOI18N
        jLabel37.setName("jLabel37"); // NOI18N
        jPanel1.add(jLabel37, new org.netbeans.lib.awtextra.AbsoluteConstraints(628, 879, -1, -1));

        btnFinalizarFinanciamiento.setText(resourceMap.getString("btnFinalizarFinanciamiento.text")); // NOI18N
        btnFinalizarFinanciamiento.setName("btnFinalizarFinanciamiento"); // NOI18N
        btnFinalizarFinanciamiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFinalizarFinanciamientoActionPerformed(evt);
            }
        });
        jPanel1.add(btnFinalizarFinanciamiento, new org.netbeans.lib.awtextra.AbsoluteConstraints(800, 810, 150, 25));

        btnGuardarEntrada.setText(resourceMap.getString("btnGuardarEntrada.text")); // NOI18N
        btnGuardarEntrada.setEnabled(false);
        btnGuardarEntrada.setName("btnGuardarEntrada"); // NOI18N
        btnGuardarEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarEntradaActionPerformed(evt);
            }
        });
        jPanel1.add(btnGuardarEntrada, new org.netbeans.lib.awtextra.AbsoluteConstraints(441, 828, -1, -1));

        btnGuardarPlazo.setText(resourceMap.getString("btnGuardarPlazo.text")); // NOI18N
        btnGuardarPlazo.setEnabled(false);
        btnGuardarPlazo.setName("btnGuardarPlazo"); // NOI18N
        btnGuardarPlazo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarPlazoActionPerformed(evt);
            }
        });
        jPanel1.add(btnGuardarPlazo, new org.netbeans.lib.awtextra.AbsoluteConstraints(441, 883, 120, -1));

        jLabel38.setText(resourceMap.getString("jLabel38.text")); // NOI18N
        jLabel38.setName("jLabel38"); // NOI18N
        jPanel1.add(jLabel38, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 70, -1, -1));

        txtIdSolicitud.setText(resourceMap.getString("txtIdSolicitud.text")); // NOI18N
        txtIdSolicitud.setName("txtIdSolicitud"); // NOI18N
        jPanel1.add(txtIdSolicitud, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 60, 60, -1));

        btnNuevaSolicitud.setText(resourceMap.getString("btnNuevaSolicitud.text")); // NOI18N
        btnNuevaSolicitud.setName("btnNuevaSolicitud"); // NOI18N
        btnNuevaSolicitud.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevaSolicitudActionPerformed(evt);
            }
        });
        jPanel1.add(btnNuevaSolicitud, new org.netbeans.lib.awtextra.AbsoluteConstraints(811, 100, 130, 25));

        txtImprimir.setText(resourceMap.getString("txtImprimir.text")); // NOI18N
        txtImprimir.setEnabled(false);
        txtImprimir.setName("txtImprimir"); // NOI18N
        txtImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtImprimirActionPerformed(evt);
            }
        });
        jPanel1.add(txtImprimir, new org.netbeans.lib.awtextra.AbsoluteConstraints(800, 840, 150, 25));

        jLabel39.setFont(resourceMap.getFont("jLabel39.font")); // NOI18N
        jLabel39.setText(resourceMap.getString("jLabel39.text")); // NOI18N
        jLabel39.setName("jLabel39"); // NOI18N
        jPanel1.add(jLabel39, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, 330, 70));

        jLabel40.setBackground(resourceMap.getColor("jLabel40.background")); // NOI18N
        jLabel40.setFont(resourceMap.getFont("jLabel40.font")); // NOI18N
        jLabel40.setForeground(resourceMap.getColor("jLabel40.foreground")); // NOI18N
        jLabel40.setText(resourceMap.getString("jLabel40.text")); // NOI18N
        jLabel40.setName("jLabel40"); // NOI18N
        jLabel40.setOpaque(true);
        jPanel1.add(jLabel40, new org.netbeans.lib.awtextra.AbsoluteConstraints(28, 158, 761, 26));

        jLabel52.setText(resourceMap.getString("jLabel52.text")); // NOI18N
        jLabel52.setName("jLabel52"); // NOI18N
        jPanel1.add(jLabel52, new org.netbeans.lib.awtextra.AbsoluteConstraints(830, 70, -1, -1));

        jScrollPane1.setViewportView(jPanel1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 987, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 377, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnBuscarVehiculoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarVehiculoActionPerformed
        dv = new DaoVehiculo();
        if (txtPlacaNuevo.getText().isEmpty() == false) {
            try {
                v1 = dv.buscarId(txtPlacaNuevo.getText().toUpperCase());
                int opc = 0;
                if (v1.getPrecioExtra() == 0) {
                    opc = JOptionPane.showConfirmDialog(this, "Vehículo a financiar sin Precio de Venta\nDe todas manera desea continuar","Mensaje",JOptionPane.YES_NO_OPTION);
                }
                if (opc == 0) {
                    txtChasis.setText(v1.getNumChasis());
                    txtColor.setText(v1.getColor());
                    txtMarca.setText(v1.getMarca());
                    txtModelo.setText(v1.getModelo());
                    txtMotor.setText(v1.getNumMotor());
                    txtPlaca.setText(v1.getPlaca());
                    txtTipo.setText(v1.getTipo());
                    txtMatricula.setText(v1.getFecha());
                    txtValorFinal.setText(v1.getPrecioExtra()+"");
                    btnGuardarEntrada.setEnabled(true);
                    btnGuardarPlazo.setEnabled(true);
                } else {
                    JOptionPane.showMessageDialog(this, "Regrese a  Administración de Vehículo para solucionar esto");
                }
            } catch (NullPointerException e) {
                JOptionPane.showMessageDialog(this, "Vehiculo NO Encontrado...");
            }
        } else {
            JOptionPane.showMessageDialog(this, "Placa Incorrecta...", "Error de Datos", JOptionPane.ERROR_MESSAGE);
            txtPlacaNuevo.setText("");
        }
    }//GEN-LAST:event_btnBuscarVehiculoActionPerformed

    private void btnBuscarClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarClienteActionPerformed
        dc = new DaoCliente();
        limpiarDatosGarante();
        limpiarDatosCliente();
        limpiarDatosConyuge();

        cedula = txtCedulaNuevo.getText();
        if (control.verificaCedulaRuc(cedula) == true) {
            if (dc.buscarId(cedula) != null) {
                Cliente C1 = dc.buscarId(cedula);
                txtCedula.setText(C1.getCedula());
                txtNombreApellidoCliente.setText(C1.getNombres() + " " + C1.getApellidos());
                txtDirec.setText(C1.getDireccionDomicilio());
                txtDirecTrab.setText(C1.getDireccionTrabajo());
                txtTelefono.setText(C1.getTelefonoCedlular() + " - " + C1.getTelefonoDomicilio());
                txtEdad.setText(String.valueOf(C1.getEdad()));
                txtEstado.setText(C1.getEstado().toString());
                if (C1.getConyuge() != null) {
                    txtCedulaC.setText(C1.getConyuge().getCedula());
                    txtNombreApellidoConyuge.setText(C1.getConyuge().getNombres() + " " + C1.getConyuge().getApellidos());
                    txtTelefonoC.setText(C1.getConyuge().getTelefonoCedlular() + " - " + C1.getConyuge().getTelefonoDomicilio());
                } else {
                    limpiarDatosConyuge();
                }
                if (C1.getGarante() != null) {
                    txtCedulaG.setText(C1.getGarante().getCedula());
                    txtNombresApellidosG.setText(C1.getGarante().getNombres() + " " + C1.getGarante().getApellidos());
                    txtDirecG.setText(C1.getGarante().getDireccionDomicilio());
                    txtTelefonoG.setText(C1.getGarante().getTelefonoCedlular() + " - " + C1.getGarante().getTelefonoDomicilio());
                    txtEdadG.setText(String.valueOf(C1.getGarante().getEdad()));
                    txtEstadoG.setText(C1.getGarante().getEstado().toString());
                } else {
                    limpiarDatosGarante();
                }

            } else {
                JOptionPane.showMessageDialog(this, "Cliente NO Encontrado...\nPuede Agregarlo al Sistema como nuevo Cliente.");
            }
        } else {
            JOptionPane.showMessageDialog(this, "Cedula Incorrecta", "Error de Datos", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_btnBuscarClienteActionPerformed

    private void btnGuardarEntradaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarEntradaActionPerformed
     try {
            if (Double.parseDouble(txtValorFinal.getText())-Double.parseDouble(txtValorEntrada.getText()) >= 0) {
                sol.setValorFinal(Double.parseDouble(txtValorFinal.getText().toString()));
                try {
                    sol.setEntrada(Double.parseDouble(txtValorEntrada.getText()));
                } catch (NumberFormatException e) {
                    sol.setEntrada(0);
                }
                if (txtValorEntrada.getText().equals("")) {
                    sol.setSaldoAdeudado(v1.precioFinal());
                } else {
                    sol.setSaldoAdeudado(sol.saldoAdeudado());
                }
                txtSaldoAdeudado.setText(String.valueOf(sol.getSaldoAdeudado()));
                btnGuardarPlazo.setEnabled(true);
                btnGuardarEntrada.setEnabled(false);
            }else{
                JOptionPane.showMessageDialog(this, "El valor de Entrada no puede ser mayor al valor final del Vehículo");
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(this, "Faltan Datos");
        }
    }//GEN-LAST:event_btnGuardarEntradaActionPerformed

    private void btnGuardarPlazoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarPlazoActionPerformed
        try {
            if (Integer.parseInt(txtPlazo.getText()) != 0) {
                String por = "";
                try {
                    if (txtSaldoAdeudado.getText().equals("")) {
                        sol.setSaldoAdeudado(v1.precioFinal());
                    }
                    try {
                        por = JOptionPane.showInputDialog("Ingrese el porcentaje de interés: ");
                        double porcentaje = Double.parseDouble(por);
                        sol.setInteres(porcentaje);
                        try {
                            sol.setPlazo(Integer.parseInt(txtPlazo.getText().toString()));
                            JOptionPane.showMessageDialog(this, "Interes = " + porcentaje + " Valor Interes = " + sol.calInteres() + " Valor Cuota = " + sol.calSaldoCuota());
                            double cu = sol.calCuota(sol.getPlazo());
                            cu = control.redondearCantidad(cu);
                            txtValorCuotas.setText(String.valueOf(cu));
                            btnFinalizarFinanciamiento.setEnabled(true);
                        } catch (NumberFormatException e) {
                            JOptionPane.showMessageDialog(this, "Ingrese el Plazo: ", "Error de Datos", JOptionPane.ERROR_MESSAGE);
                        }
                    } catch (Exception e) {
                        if (por.equals("")) {
                            JOptionPane.showMessageDialog(this, "Ingrese un interés correcto: ", "Error de Datos", JOptionPane.ERROR_MESSAGE);
                        }
                    }
                } catch (NullPointerException e) {
                    JOptionPane.showMessageDialog(this, "Faltan Datos");
                }
            } else {
                JOptionPane.showMessageDialog(this, "Ingrese un PLAZO primero: ", "Error de Datos", JOptionPane.ERROR_MESSAGE);
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(this, "Datos Incorrecto: ", "Error de Datos", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_btnGuardarPlazoActionPerformed

    private void btnFinalizarFinanciamientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFinalizarFinanciamientoActionPerformed
        if (control.validarCodigo(txtCedula.getText() + txtIdSolicitud.getText()).isEmpty()) {
            if (txtPlazo.getText().equals("") != true && txtValorCuotas.getText().equals("") != true&&txtCedulaG.getText().isEmpty()==false) {
                if (txtCedula.getText().equals("") != true) {
                    if ((txtCedula.getText() + txtIdSolicitud.getText()).equals("") != true) {
                        daoAdministracion = new DaoAdministracionFinanciamiento();
                        sol.setId(txtCedula.getText() + txtIdSolicitud.getText());
                        double cu = sol.calCuota(sol.getPlazo());
                        cu = control.redondearCantidad(cu);
                        sol.setCuotaMensual(cu);
                        sol.setSaldoAdeudadoInicial(Double.parseDouble(txtSaldoAdeudado.getText()));
                        sol.setPlazoInicial(Integer.parseInt(txtPlazo.getText()));
                        sol.setValorCuotasInicial(cu);
                        sol.datosCliente(txtCedula.getText(), txtNombreApellidoCliente.getText(), txtEdad.getText(), txtEstado.getText(), txtTelefono.getText(), txtDirec.getText(), txtDirecTrab.getText());
                        sol.datosConyuge(txtCedulaC.getText(), txtNombreApellidoConyuge.getText(), txtTelefonoC.getText());
                        sol.datosGarante(txtCedulaG.getText(), txtNombresApellidosG.getText(), txtEdadG.getText(), txtEstadoG.getText(), txtTelefonoG.getText(), txtDirecG.getText());
                        sol.DatosVehiculo(txtPlaca.getText(), txtMarca.getText(), txtTipo.getText(), txtModelo.getText(), txtColor.getText(), txtMotor.getText(), txtChasis.getText(), txtMatricula.getText());
                        sol.setFechaContrato(new Date());
                        admin = new Financiamiento(txtCedula.getText(), Double.parseDouble(txtPlazo.getText()) * sol.getCuotaMensual(), sol);
                        admin.setId(txtCedula.getText() + txtIdSolicitud.getText());
                 try {
                            daoAdministracion.guardar(admin);
                            btnGuardarPlazo.setEnabled(false);
                            btnFinalizarFinanciamiento.setEnabled(false);
                            btnGuardarEntrada.setEnabled(false);
                            JOptionPane.showMessageDialog(this, "SOLICITUD ALMACENADA");
                            btnGuardarEntrada.setEnabled(false);
                            btnGuardarPlazo.setEnabled(false);
                            txtImprimir.setEnabled(true);
                        } catch (Exception e) {
                            JOptionPane.showMessageDialog(this, "Ya existe una solicitud con el mismo Código");
                        }
                    } else {
                        JOptionPane.showMessageDialog(this, "Falta el código de la Solicitud de Financiamiento");
                    }
                } else {
                    JOptionPane.showMessageDialog(this, "Faltan los datos del Cliente");
                }
            } else {
                JOptionPane.showMessageDialog(this, "Faltan Datos");
            }
        } else {
            JOptionPane.showMessageDialog(this, control.validarCodigo(txtCedula.getText() + txtIdSolicitud.getText()), "Atención", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_btnFinalizarFinanciamientoActionPerformed

    private void btnNuevaSolicitudActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevaSolicitudActionPerformed
        sol = new SolicitudFinanciamiento();
        admin = new Financiamiento();
        activarBotones(true);
        limpiarDatosCliente();
        limpiarDatosConyuge();
        limpiarDatosGarante();
        limpiarDatosVehiculo();
        txtValorEntrada.setEnabled(true);
        txtPlazo.setEnabled(true);
        txtValorFinal.setText("");
        txtValorEntrada.setText("");
        txtSaldoAdeudado.setText("");
        txtPlazo.setText("");
        txtValorCuotas.setText("");
        btnGuardarEntrada.setEnabled(false);
        btnGuardarPlazo.setEnabled(false);
        txtImprimir.setEnabled(false);
    }//GEN-LAST:event_btnNuevaSolicitudActionPerformed

    private void txtImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtImprimirActionPerformed
        CargarReportes report = new CargarReportes();
        report.llamarReporte(txtCedula.getText() + txtIdSolicitud.getText(), "ReporteSolicitudFinanciamiento", "idS");
    }//GEN-LAST:event_txtImprimirActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBuscarCliente;
    private javax.swing.JButton btnBuscarVehiculo;
    private javax.swing.JButton btnFinalizarFinanciamiento;
    private javax.swing.JButton btnGuardarEntrada;
    private javax.swing.JButton btnGuardarPlazo;
    private javax.swing.JButton btnNuevaSolicitud;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextField txtCedula;
    private javax.swing.JTextField txtCedulaC;
    private javax.swing.JTextField txtCedulaG;
    private javax.swing.JTextField txtCedulaNuevo;
    private javax.swing.JTextField txtChasis;
    private javax.swing.JTextField txtColor;
    private javax.swing.JTextField txtDirec;
    private javax.swing.JTextField txtDirecG;
    private javax.swing.JTextField txtDirecTrab;
    private javax.swing.JTextField txtEdad;
    private javax.swing.JTextField txtEdadG;
    private javax.swing.JTextField txtEstado;
    private javax.swing.JTextField txtEstadoG;
    private javax.swing.JTextField txtIdSolicitud;
    private javax.swing.JButton txtImprimir;
    private javax.swing.JTextField txtMarca;
    private javax.swing.JTextField txtMatricula;
    private javax.swing.JTextField txtModelo;
    private javax.swing.JTextField txtMotor;
    private javax.swing.JTextField txtNombreApellidoCliente;
    private javax.swing.JTextField txtNombreApellidoConyuge;
    private javax.swing.JTextField txtNombresApellidosG;
    private javax.swing.JTextField txtPlaca;
    private javax.swing.JTextField txtPlacaNuevo;
    private javax.swing.JTextField txtPlazo;
    private javax.swing.JTextField txtSaldoAdeudado;
    private javax.swing.JTextField txtTelefono;
    private javax.swing.JTextField txtTelefonoC;
    private javax.swing.JTextField txtTelefonoG;
    private javax.swing.JTextField txtTipo;
    private javax.swing.JTextField txtValorCuotas;
    private javax.swing.JTextField txtValorEntrada;
    private javax.swing.JTextField txtValorFinal;
    // End of variables declaration//GEN-END:variables

    public void limpiarDatosConyuge() {
        txtCedulaC.setText("");
        txtNombreApellidoConyuge.setText("");
        txtTelefonoC.setText("");
    }

    private void limpiarDatosCliente() {
        txtCedula.setText("");
        txtNombreApellidoCliente.setText("");
        txtTelefono.setText("");
        txtDirec.setText("");
        txtDirecTrab.setText("");
        txtTelefono.setText("");
        txtEdad.setText("");
        txtEstado.setText("");
    }

    private void limpiarDatosGarante() {
        txtCedulaG.setText("");
        txtNombresApellidosG.setText("");
        txtDirecG.setText("");
        txtTelefonoG.setText("");
        txtEdadG.setText("");
        txtEstadoG.setText("");
    }

    private void limpiarDatosVehiculo() {
        txtChasis.setText("");
        txtColor.setText("");
        txtMarca.setText("");
        txtModelo.setText("");
        txtMotor.setText("");
        txtPlaca.setText("");
        txtTipo.setText("");
        txtMatricula.setText("");
    }

    private void activarBotones(boolean b) {
        btnBuscarCliente.setEnabled(b);
        btnBuscarVehiculo.setEnabled(b);
        btnFinalizarFinanciamiento.setEnabled(b);
    }
}
